Nice again showed their Ligue 1 title credentials after battling to victory against a Guingamp side who had not lost since September.